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A;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA","sources":["webpack://quran.com/src/pages/[chapterId]/tafsirs/[tafsirId].tsx","webpack://quran.com/sentry-wrapper-module","webpack://quran.com/./src/lib/og.ts","webpack://quran.com/external commonjs \"@reduxjs/toolkit\"","webpack://quran.com/external commonjs \"@sentry/nextjs\"","webpack://quran.com/external commonjs \"classnames\"","webpack://quran.com/external commonjs \"humps\"","webpack://quran.com/external commonjs \"lodash/findKey\"","webpack://quran.com/external commonjs \"lodash/groupBy\"","webpack://quran.com/external commonjs \"lodash/random\"","webpack://quran.com/external commonjs \"lodash/range\"","webpack://quran.com/external commonjs \"lodash/uniq\"","webpack://quran.com/external commonjs \"next-seo\"","webpack://quran.com/external commonjs \"next-translate/useTranslation\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/app-router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/head-manager-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/detect-domain-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/normalize-locale-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/is-plain-object.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/mitt.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/page-path/denormalize-page-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-path-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/compare-states.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-bot.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-dynamic.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-relative-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/path-has-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/querystring.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/remove-trailing-slash.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/resolve-rewrites.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-matcher.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-regex.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/utils.js\"","webpack://quran.com/external commonjs \"next/router\"","webpack://quran.com/external commonjs \"react\"","webpack://quran.com/external commonjs \"react-redux\"","webpack://quran.com/external commonjs \"react/jsx-runtime\"","webpack://quran.com/external commonjs \"refresh-fetch\"","webpack://quran.com/external module \"@radix-ui/react-separator\"","webpack://quran.com/external module \"@radix-ui/react-tooltip\"","webpack://quran.com/external module \"firebase/compat/analytics\"","webpack://quran.com/external module \"firebase/compat/app\"","webpack://quran.com/external module \"js-cookie\"","webpack://quran.com/external module \"react-toastify\"","webpack://quran.com/external module \"swr\"","webpack://quran.com/external module \"swr/immutable\"","webpack://quran.com/external node-commonjs \"querystring\""],"sourcesContent":["/* eslint-disable react-func/max-lines-per-function */\nimport React from 'react';\n\nimport { NextPage, GetStaticProps, GetStaticPaths } from 'next';\nimport useTranslation from 'next-translate/useTranslation';\nimport { SWRConfig } from 'swr';\n\nimport styles from '../[verseId]/tafsirs.module.scss';\n\nimport { fetcher } from '@/api';\nimport NextSeoWrapper from '@/components/NextSeoWrapper';\nimport TafsirBody from '@/components/QuranReader/TafsirView/TafsirBody';\nimport { getChapterOgImageUrl } from '@/lib/og';\nimport Error from '@/pages/_error';\nimport { getQuranReaderStylesInitialState } from '@/redux/defaultSettings/util';\nimport { makeTafsirContentUrl, makeTafsirsUrl } from '@/utils/apiPaths';\nimport { getAllChaptersData, getChapterData } from '@/utils/chapter';\nimport { getLanguageAlternates, toLocalizedNumber } from '@/utils/locale';\nimport {\n getCanonicalUrl,\n getVerseSelectedTafsirNavigationUrl,\n scrollWindowToTop,\n} from '@/utils/navigation';\nimport {\n REVALIDATION_PERIOD_ON_ERROR_SECONDS,\n ONE_WEEK_REVALIDATION_PERIOD_SECONDS,\n} from '@/utils/staticPageGeneration';\nimport { isValidVerseKey } from '@/utils/validator';\nimport { getVerseAndChapterNumbersFromKey } from '@/utils/verse';\nimport { ChapterResponse, TafsirContentResponse } from 'types/ApiResponses';\nimport ChaptersData from 'types/ChaptersData';\n\ntype AyahTafsirProp = {\n chapter?: ChapterResponse;\n hasError?: boolean;\n verseNumber?: string;\n tafsirIdOrSlug?: string;\n chapterId?: string;\n tafsirData?: TafsirContentResponse;\n chaptersData: ChaptersData;\n fallback: any;\n};\n\nconst SelectedTafsirOfAyah: NextPage<AyahTafsirProp> = ({\n hasError,\n chapter,\n verseNumber,\n chapterId,\n tafsirData,\n tafsirIdOrSlug,\n fallback,\n}) => {\n const { t, lang } = useTranslation('common');\n if (hasError) {\n return <Error statusCode={500} />;\n }\n\n const navigationUrl = getVerseSelectedTafsirNavigationUrl(\n chapterId,\n Number(verseNumber),\n tafsirData.tafsir.slug,\n );\n const localizedVerseNumber = toLocalizedNumber(Number(verseNumber), lang);\n\n return (\n <>\n <NextSeoWrapper\n title={`${t('tafsir.surah')} ${\n chapter.chapter.transliteratedName\n } - ${localizedVerseNumber}`}\n image={getChapterOgImageUrl({\n chapterId,\n verseNumber,\n locale: lang,\n })}\n imageWidth={1200}\n imageHeight={630}\n canonical={getCanonicalUrl(lang, navigationUrl)}\n description={t('tafsir.tafsir-desc', {\n verseNumber: localizedVerseNumber,\n tafsirName: tafsirData.tafsir.translatedName.name,\n surahName: chapter.chapter.transliteratedName,\n })}\n languageAlternates={getLanguageAlternates(navigationUrl)}\n />\n {/* @ts-ignore */}\n <SWRConfig value={{ fallback }}>\n <div className={styles.tafsirContainer}>\n <TafsirBody\n shouldRender\n scrollToTop={scrollWindowToTop}\n initialChapterId={chapterId}\n initialVerseNumber={verseNumber.toString()}\n initialTafsirIdOrSlug={tafsirIdOrSlug || undefined}\n render={({ body, languageAndTafsirSelection, surahAndAyahSelection }) => {\n return (\n <div>\n {surahAndAyahSelection}\n {languageAndTafsirSelection}\n {body}\n </div>\n );\n }}\n />\n </div>\n </SWRConfig>\n </>\n );\n};\n\nexport const getStaticProps: GetStaticProps = async ({ params, locale }) => {\n const { chapterId, tafsirId: tafsirIdOrSlug } = params;\n const verseKey = String(chapterId);\n const chaptersData = await getAllChaptersData(locale);\n // if the verse key or the tafsir id is not valid\n if (!isValidVerseKey(chaptersData, verseKey)) {\n return { notFound: true };\n }\n const [chapterNumber, verseNumber] = getVerseAndChapterNumbersFromKey(verseKey);\n const { quranFont, mushafLines } = getQuranReaderStylesInitialState(locale);\n try {\n const tafsirContentUrl = makeTafsirContentUrl(tafsirIdOrSlug as string, verseKey, {\n lang: locale,\n quranFont,\n mushafLines,\n });\n const tafsirListUrl = makeTafsirsUrl(locale);\n\n const [tafsirContentData, tafsirListData] = await Promise.all([\n fetcher(tafsirContentUrl),\n fetcher(tafsirListUrl),\n ]);\n\n return {\n props: {\n chaptersData,\n chapterId: chapterNumber,\n chapter: { chapter: getChapterData(chaptersData, chapterNumber) },\n fallback: {\n [tafsirListUrl]: tafsirListData,\n [tafsirContentUrl]: tafsirContentData,\n },\n tafsirData: tafsirContentData,\n verseNumber,\n tafsirIdOrSlug,\n },\n revalidate: ONE_WEEK_REVALIDATION_PERIOD_SECONDS, // verses will be generated at runtime if not found in the cache, then cached for subsequent requests for 7 days.\n };\n } catch (error) {\n return {\n props: { hasError: true },\n revalidate: REVALIDATION_PERIOD_ON_ERROR_SECONDS, // 35 seconds will be enough time before we re-try generating the page again.\n };\n }\n};\n\nexport const getStaticPaths: GetStaticPaths = async () => ({\n paths: [], // no pre-rendered chapters at build time.\n fallback: 'blocking', // will server-render pages on-demand if the path doesn't exist.\n});\n\nexport default SelectedTafsirOfAyah;\n","import * as Sentry from '@sentry/nextjs';\nimport * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\nexport * from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\n\n/*\n * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the\n * `pages/` directory.\n *\n * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,\n * this causes both TS and ESLint to complain, hence the pragma comments below.\n */\n\nconst userPageModule = serverComponentModule ;\n\nconst pageComponent = userPageModule ? userPageModule.default : undefined;\n\nconst origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;\nconst origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;\nconst origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getInitialPropsWrappers = {\n '/_app': Sentry.wrapAppGetInitialPropsWithSentry,\n '/_document': Sentry.wrapDocumentGetInitialPropsWithSentry,\n '/_error': Sentry.wrapErrorGetInitialPropsWithSentry,\n};\n\nconst getInitialPropsWrapper = getInitialPropsWrappers['/[chapterId]/tafsirs/[tafsirId]'] || Sentry.wrapGetInitialPropsWithSentry;\n\nif (pageComponent && typeof origGetInitialProps === 'function') {\n pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;\n}\n\nconst getStaticProps =\n typeof origGetStaticProps === 'function'\n ? Sentry.wrapGetStaticPropsWithSentry(origGetStaticProps, '/[chapterId]/tafsirs/[tafsirId]')\n : undefined;\nconst getServerSideProps =\n typeof origGetServerSideProps === 'function'\n ? Sentry.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/[chapterId]/tafsirs/[tafsirId]')\n : undefined;\n\nconst pageWrapperTemplate = pageComponent ? Sentry.wrapPageComponentWithSentry(pageComponent ) : pageComponent;\n\nexport { pageWrapperTemplate as default, getServerSideProps, getStaticProps };\n","const BASE_OG_URL = 'https://og.qurancdn.com';\n\ninterface BaseOgOptions {\n locale: string;\n}\n\nexport const getDefaultOgImageUrl = ({ locale }: BaseOgOptions) =>\n `${BASE_OG_URL}/api/og?lang=${locale}`;\n\nexport const getAboutTheQuranImageUrl = ({ locale }: BaseOgOptions) =>\n `${BASE_OG_URL}/api/og/about-the-quran?lang=${locale}`;\n\nexport const getLearningPlansImageUrl = ({ locale }: BaseOgOptions) =>\n `${BASE_OG_URL}/api/og/learning-plans?lang=${locale}`;\n\nexport const getChapterOgImageUrl = ({\n chapterId,\n locale,\n verseNumber,\n}: BaseOgOptions & {\n chapterId: string | number;\n verseNumber?: string | number;\n}) => {\n const url = `${BASE_OG_URL}/api/og/chapter/${chapterId}?lang=${locale}`;\n\n if (!verseNumber) return url;\n return `${url}&verse=${verseNumber}`;\n};\n","module.exports = require(\"@reduxjs/toolkit\");","module.exports = require(\"@sentry/nextjs\");","module.exports = require(\"classnames\");","module.exports = require(\"humps\");","module.exports = require(\"lodash/findKey\");","module.exports = require(\"lodash/groupBy\");","module.exports = require(\"lodash/random\");","module.exports = require(\"lodash/range\");","module.exports = require(\"lodash/uniq\");","module.exports = require(\"next-seo\");","module.exports = require(\"next-translate/useTranslation\");","module.exports = require(\"next/dist/shared/lib/app-router-context.js\");","module.exports = require(\"next/dist/shared/lib/head-manager-context.js\");","module.exports = require(\"next/dist/shared/lib/i18n/detect-domain-locale.js\");","module.exports = require(\"next/dist/shared/lib/i18n/normalize-locale-path.js\");","module.exports = require(\"next/dist/shared/lib/is-plain-object.js\");","module.exports = require(\"next/dist/shared/lib/mitt.js\");","module.exports = require(\"next/dist/shared/lib/page-path/denormalize-page-path.js\");","module.exports = require(\"next/dist/shared/lib/router-context.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-locale.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-path-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/compare-states.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-bot.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-dynamic.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-path.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-relative-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/path-has-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/querystring.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/remove-trailing-slash.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/resolve-rewrites.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-matcher.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-regex.js\");","module.exports = require(\"next/dist/shared/lib/utils.js\");","module.exports = require(\"next/router\");","module.exports = require(\"react\");","module.exports = require(\"react-redux\");","module.exports = require(\"react/jsx-runtime\");","module.exports = require(\"refresh-fetch\");","module.exports = import(\"@radix-ui/react-separator\");;","module.exports = import(\"@radix-ui/react-tooltip\");;","module.exports = import(\"firebase/compat/analytics\");;","module.exports = import(\"firebase/compat/app\");;","module.exports = import(\"js-cookie\");;","module.exports = import(\"react-toastify\");;","module.exports = import(\"swr\");;","module.exports = import(\"swr/immutable\");;","module.exports = require(\"querystring\");"],"names":["SelectedTafsirOfAyah","hasError","chapter","verseNumber","chapterId","tafsirData","tafsirIdOrSlug","fallback","t","lang","useTranslation","_jsx","Error","statusCode","navigationUrl","getVerseSelectedTafsirNavigationUrl","Number","tafsir","slug","localizedVerseNumber","toLocalizedNumber","_jsxs","_Fragment","NextSeoWrapper","title","transliteratedName","image","getChapterOgImageUrl","locale","imageWidth","imageHeight","canonical","getCanonicalUrl","description","tafsirName","translatedName","name","surahName","languageAlternates","getLanguageAlternates","SWRConfig","value","div","className","styles","tafsirContainer","TafsirBody","shouldRender","scrollToTop","scrollWindowToTop","initialChapterId","initialVerseNumber","toString","initialTafsirIdOrSlug","undefined","render","body","languageAndTafsirSelection","surahAndAyahSelection","getStaticProps","params","tafsirId","verseKey","String","chaptersData","getAllChaptersData","isValidVerseKey","notFound","chapterNumber","getVerseAndChapterNumbersFromKey","quranFont","mushafLines","getQuranReaderStylesInitialState","tafsirContentUrl","makeTafsirContentUrl","tafsirListUrl","makeTafsirsUrl","tafsirContentData","tafsirListData","Promise","all","fetcher","props","getChapterData","revalidate","ONE_WEEK_REVALIDATION_PERIOD_SECONDS","error","REVALIDATION_PERIOD_ON_ERROR_SECONDS","getStaticPaths","paths","BASE_OG_URL","getDefaultOgImageUrl","getAboutTheQuranImageUrl","getLearningPlansImageUrl","url"],"sourceRoot":""}